package com.wx.gof.pattern.structural.decorator;

/**
 * @ClassName EggDecorator
 * @Author wx
 * @Description 煎饼果子装饰器-加鸡蛋
 * @Date 2018-12-08-1:47
 */
public class EggDecorator extends BattercakeDecorator{
    public EggDecorator(IBattercake iBattercake) {
        super(iBattercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + "加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 2;
    }
}
